package com.easemob.chat;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.easemob.util.EMLog;

public class StartServiceReceiver extends BroadcastReceiver
{
  public void onReceive(Context paramContext, Intent paramIntent)
  {
    EMLog.d("boot", "start easemob service on boot");
    Intent localIntent = new Intent(paramContext, EMChatService.class);
    localIntent.putExtra("reason", "boot");
    paramContext.startService(localIntent);
  }

  public static void schduleNextHeartbeat(Context paramContext)
  {
    try
    {
      EMSessionManager.getInstance().scheduleNextHeartBeat();
    }
    catch (Exception localException)
    {
      localException.printStackTrace();
    }
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     com.easemob.chat.StartServiceReceiver
 * JD-Core Version:    0.6.1
 */